[IA64] backport toolchain fixes from linux-ia64
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 19 Oct 2006 04:06:23 +0000 (22:06 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 19 Oct 2006 04:06:23 +0000 (22:06 -0600)
This backports the ia64 specific parts of this upstream linux
changeset:

http://www.kernel.org/hg/linux-2.6/?cs=dfbee33b0693

Change suggested by Akio Takebe.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
linux-2.6-xen-sparse/arch/ia64/kernel/Makefile
linux-2.6-xen-sparse/arch/ia64/kernel/gate.lds.S

index 09a0dbc17fb687bfc6e79ba6377e012246846180..003e9ee600b09eb6a9e108c3af462591253f1b6c 100644 (file)
@@ -44,7 +44,8 @@ CPPFLAGS_gate.lds := -P -C -U$(ARCH)
 quiet_cmd_gate = GATE $@
       cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
 
-GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1
+GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
+                    $(call ld-option, -Wl$(comma)--hash-style=sysv)
 $(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
        $(call if_changed,gate)
 
index 5f0163f0be1b320ba753c850b216eb1c85a95032..45377beaa4c76ee1ee4e91c3856af510544a4017 100644 (file)
@@ -13,6 +13,7 @@ SECTIONS
   . = GATE_ADDR + SIZEOF_HEADERS;
 
   .hash                                : { *(.hash) }                          :readable
+  .gnu.hash                    : { *(.gnu.hash) }
   .dynsym                      : { *(.dynsym) }
   .dynstr                      : { *(.dynstr) }
   .gnu.version                 : { *(.gnu.version) }